package com.lecture.java8.graph.demo01;

public class Road {
    int startId, endId;
    double length;

    public Road(int startId, int endId, double length) {
        this.startId = startId;
        this.endId = endId;
        this.length = length;
    }

    @Override
    public String toString() {
        return "Road{start=" + startId + ", end=" + endId + ", length=" + length + "}";
    }

}
